﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true"
    CodeBehind="AdminUser.aspx.cs" Inherits="EHTSaleManager.UIAdmin.AdminUser" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 <h1>
        <asp:Label ID="lbAdminUser" runat="server" Text="Bruker Leder"></asp:Label>
    </h1>
    <table cellspacing="0" cellpadding="0" class="data-table">
        <tr>
            <td colspan="2">
                <span class="failureNotification">
                    <asp:Literal ID="ltrMessage" runat="server"></asp:Literal>
                </span>
                <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
                    ValidationGroup="RegisterUserValidationGroup" />
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lbEmail" runat="server">E-Post:</asp:Label>
            </td>
            <th>
                <asp:TextBox ID="txtEmail" runat="server" CssClass="textEntry"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rEmail" runat="server" ControlToValidate="txtEmail"
                    ValidationGroup="RegisterUserValidationGroup" CssClass="failureNotification"
                    ErrorMessage="Email is required." ToolTip="Email is required." Text="*" />
                <asp:RegularExpressionValidator ID="revEmail" runat="server" ValidationGroup="RegisterUserValidationGroup"
                    ControlToValidate="txtEmail" CssClass="failureNotification" ErrorMessage="Email not valid"
                    ToolTip="Email not valid" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
            </th>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lbPassword" runat="server">Passord:</asp:Label>
            </td>
            <th>
                <asp:TextBox ID="txtPassword" runat="server" CssClass="textEntry" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rPassword" runat="server" ControlToValidate="txtPassword"
                    ValidationGroup="RegisterUserValidationGroup" CssClass="failureNotification"
                    ErrorMessage="Password is required." ToolTip="Password is required." Text="*" />
            </th>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lbComfirmPassword" runat="server">Comfirm Passord:</asp:Label>
            </td>
            <th>
                <asp:TextBox ID="txtComfirmPassword" runat="server" CssClass="textEntry" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rComfirmPassword" runat="server" ControlToValidate="txtComfirmPassword"
                    ValidationGroup="RegisterUserValidationGroup" CssClass="failureNotification"
                    ErrorMessage="Comfirm Password is required." ToolTip="Comfirm Password is required."
                    Text="*" />
                <asp:CompareValidator ID="cComfirmPassword" CssClass="failureNotification" ControlToValidate="txtComfirmPassword"
                    ControlToCompare="txtPassword" runat="server" ErrorMessage="Comfirm Password is same password."
                    ToolTip="Comfirm Password is same password." ValidationGroup="RegisterUserValidationGroup">*</asp:CompareValidator>
            </th>
        </tr>
        <tr>
            <td>
            </td>
            <th>
                <asp:Button ID="btnSave" runat="server" Text="Lagre" ValidationGroup="RegisterUserValidationGroup"
                    OnClick="btnSave_Click" />
                <asp:Button ID="btnResetPassword" runat="server" Text="Tilbakestill passord" OnClick="btnResetPassword_Click"
                    OnClientClick="return confirm('Are you want to reset password ?')" />
                <asp:Button ID="btnBack" runat="server" Text="Tilbake" OnClick="btnBack_Click" />
            </th>
        </tr>
    </table>
</asp:Content>
